package com.nfit.dao;

import com.nfit.entity.Transactions;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface TransactionMapper {
    List<Transactions> selectAll(@Param("userId") String userId);

    int insert(Transactions transaction);

    Transactions selectTransactionById(@Param("transactionId") String transactionId, @Param("userId") String userId);

    int updateTransaction(Transactions transaction);

    int deleteTransactionById(String transactionId);

    int selectAmounts(@Param("userId") String userId,@Param("transactionType") String transactionType,@Param("oldYear") String oldYear,@Param("nowYear") String nowYear);
}
